<template>
<!--  -->
  <div class="allT" :class="dayModel===true?'lColor':'bColor'">
    <el-row class="IndexImg" >
      <Menu class="pHidden"></Menu>
      <PMenu class="pShow" style="display: none"></PMenu>
      <el-col>
        <div class="aCenter" style="z-index: 9">
          <img src="../assets/image/index-logo.gif" width="100" height="100" style="border-radius: 100px">
        </div>
      </el-col>
    </el-row>
      <el-row class="phoneStyle"  :gutter="20" style="margin-top: 10px">
        <el-col :sm={span:15,offset:2}>
          <div>
            <Main></Main>
            <CNumber class="toBottom"></CNumber>
          </div>
        </el-col>
        <el-col :sm="6" class="phoneMargin">
          <MyInfo class="my_margin_b"></MyInfo>
          <Lover class="my_margin_b"></Lover>
          <Diary class="my_margin_b"></Diary>
          <TypeT class="my_margin_b"></TypeT>
          <TagT></TagT>
        </el-col>
      </el-row>
    <br>
    <br>
    <br>
  </div>
</template>

<script>
import CNumber from "../views/CaseNumber"
import Menu from "../views/Menu"
import Lover from "../views/Lover";
import Main from "../views/Main";
import MyInfo from "../views/MyInfo";
import Diary from "../views/Diary";
import TypeT from "../views/Type-T";
import TagT from "../views/Tag-T";
import PMenu from "../views/PMenu";
export default {
  name: "Index",
  components: {
    CNumber,
    PMenu,
    TypeT,
    Diary,
    MyInfo,
    Main,
    Lover,
    Menu,
    TagT
  },
  mounted() {
    this.$store.commit("setRouterName",this.$router.currentRoute._rawValue.name)
    this.$store.commit('setSid',-1);
  },
  computed: {
    dayModel(){
      return this.$store.state.dayModel;
    }
  }
}
</script>

<style scoped>
.toBottom{
  position: relative;
  top: 100px;
}
.my_margin-t {
  margin-top: 20px;
}
.aCenter {
  text-align: center;
  line-height: 600px;
}
.my_margin_b {
  margin-bottom: 20px
}
</style>